package com.jinlia.show.modules.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinlia.show.common.core.entity.BaseEntity;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import com.jinlia.show.modules.base.constant.DeliveryTypeEnum;
import com.jinlia.show.modules.base.constant.i.IBaseEnum;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 配送单
 */
@Data
@TableName(value = "erp_delivery_order", schema = DynamicSchemaConfig.schema_system)
public class DeliveryOrder extends BaseEntity {
    @TableId()
    private Long id;
    /**
     * 来源订单ID
     */
    private Long orderId;

    private Long userAddressId;
    /**
     * 顾客预留姓名
     */
    private String userName;
    /**
     * 顾客预留手机号
     */
    private String userPhone;
    /**
     * 顾客预留地址
     */
    private String deliveryAddress;
    /**
     * 顾客预留地址名
     */
    private String deliveryAddressTitle;
    //维度
    private Double deliveryAddressLatitude;
    //经度
    private Double deliveryAddressLongitude;
    /**
     * 距离米
     */
    private BigDecimal deliveryDistance;

    /**
     * DeliveryStatusEnum
     */
    private Integer deliveryStatus;
    @TableField(exist = false)
    private String deliveryStatusName;
    /**
     * 见:EnableStatusEnum: 默认null为启用
     */
    private Integer enableStatus;
    /**
     * 0:未叫跑腿
     *
     */
    private Integer currentErrandStatus;
    /**
     * 当前跑腿类型
     */
    private Integer currentErrandType;
    /**
     * 当前跑腿单id
     */
    private Long currentErrandId;
    

    @TableField(exist = false)
    private String errandTypeName;

}
